package com.jing.ads.downloader;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class BootReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {
			if (Constants.LOGVV) {
				Log.v(Constants.TAG, "Receiver onBoot");
			}
			context.startService(new Intent(context, DownloadService.class));
		}
	}

}
